<div class="mozaic-widget widget-task_form" data-widget="task_form"  ><p class="mention-text original-mention"></p>
    <p class="errors"></p>
    <div class="form">
        <form class="bbf-form">
            <fieldset>
                <legend></legend>
                <div>
                    <div>
                        <label for="c2844_assigned_to" class="label-form">Assign to</label>
                        <div>
                            <select id="c2844_assigned_to" name="assigned_to">
                                <?php
                                    $users = User::listUser();
                                    foreach($users as $user) {
                                        $userId = $user->id;
                                        $userName = $user->name;
                                        echo "<option value=\"$userId\">$userName</option>";
                                    }
                                ?>
                            </select>
                        </div>
                        <div class="help-block"></div>
                    </div>
                    <div>
                        <label for="c2844_category_id" class="label-form">Task</label>
                        <div>
                            <select id="c2844_category_id" name="category_id">
                                <?php
                                    $taskTypes = TaskType::listName();
                                    foreach($taskTypes as $taskType) {
                                        $typeId = $taskType["id"];
                                        $typeName = $taskType["name"];
                                        echo "<option value=\"$typeId\">$typeName</option>";
                                    }
                                ?>
                            </select>
                        </div>
                        <div class="help-block"></div>
                    </div>
                    <div>
                        <label for="c2844_assigned_to" class="label-form">Department</label>
                        <div>
                            <input type="text" name="department" id="c2844_department"></label>
                        </div>
                        <div class="help-block"></div>
                    </div>
                    <div>
                        <label for="c2844_description" class="label-form">Description</label>
                        <div>
                            <textarea id="c2844_description" name="description" type="text"></textarea>
                        </div>
                        <div class="help-block">Anything else you would like to add</div>
                    </div>
                </div>
            </fieldset>
        </form>
    </div>
    <div class="submit-form" style="position: relative;">
        <input type="submit" class="btn btn-red commit" value="Save">
        <div class="background-loading-small hide" style="left: 26%;">
            <div class="duo duo1">
                <div class="dot dot-a"></div>
                <div class="dot dot-b"></div>
            </div>
            <div class="duo duo2">
                <div class="dot dot-a"></div>
                <div class="dot dot-b"></div>
            </div>
        </div>
    </div>
</div>